<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="com.hz.util.*" %>
<%@page import="com.hz.model.Hobby"%>
<%@page import="com.hz.control.HobbyControl"%>
<%
	request.setCharacterEncoding("utf-8");
	Hobby p = new Hobby();
	
	
	int projectid = Integer.parseInt(request.getParameter("projectid"));
	String projectname = new String(request.getParameter("projectname").getBytes("iso8859-1"),"utf-8");
	
	
	boolean isSuccess = HobbyControl.updateHobby(projectname,projectid);
	String returnJson = "{\"status\":\"" + (isSuccess ?  1 : 0) + "\"}";
%>
<%=returnJson %>